const getType = (val) => Object.prototype.toString.call(val).slice(8, -1)
const isNum = (val) => getType(val) === "Number" && !(isNaN(val))
const isStr = (val) => getType(val) === "String"
const isBol = (val) => getType(val) === "Boolean"
const isArr = (val) => getType(val) === "Array"
const isObj = (val) => getType(val) === "Object"
const isFunc = (val) => getType(val) === "Function"
const isSymbol = (val) => getType(val) === "Symbol"
const isNull = (val) => getType(val) === "Null"
const isUndefined = (val) => getType(val) === "Undefined"

module.exports = {
    getType,isNum,isStr,isBol,isArr,isObj,isFunc,isSymbol,
    isNull,isUndefined
}
